package com.lihao.sam.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * *  作者:陈国强
 * *  日期:2022/11/23 11:06
 * *  文件描述:住宿登记表
 */
@Data
@NoArgsConstructor
public class CheckIn {
    //登记编号
    private Integer id;
    //学号
    private String stuId;
    //姓名
    private String name;
    //性别
    private String sex;
    //照片
    private String image;
    //联系方式
    private String phone;
    //班级
    private String grade;
    //地址
    private String address;
    //状态  0有效  1无效
    private Integer status;
    //登记人
    private String registrant;
    //登记日期
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss",timezone = "GMT+8")
    private Date ctime;

    public CheckIn(String stuId, String name, String sex, String image, String phone, String grade, String address, Integer status) {
        this.stuId = stuId;
        this.name = name;
        this.sex = sex;
        this.image = image;
        this.phone = phone;
        this.grade = grade;
        this.address = address;
        this.status = status;
    }

}
